package city.spring.domain.entity.mealService;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * recipes_week
 *
 * @author yzh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("recipes_week")
public class RecipesWeekEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 周次
     */
    private LocalDate week;

    /**
     * 开始时间
     */
    private LocalDate startTime;

    /**
     * 结束时间
     */
    private LocalDate endTime;

    /**
     * 金额
     */
    private String prize;

    /**
     * 登记人
     */
    private String registrant;

    /**
     * 发布状态
     */
    private boolean statue;

    /**
     * 发布状态String
     */
    @TableField(exist = false)
    private String statueString;

    /**
     * 周次String
     */
    @TableField(exist = false)
    private String weekString;

    /**
     * 单位套餐List
     */
    @TableField(exist = false)
    private List<WeekMealEntity> children;


    @TableField(exist = false)
    private List<MealTimeEntity> mealTime;

}
